package com.wjm.blog.system.fallback;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wjm.blog.common.base.response.Result;
import com.wjm.blog.system.api.SysUserApi;
import com.wjm.blog.system.vo.request.SysUserQueryVo;
import com.wjm.blog.system.vo.request.SysUserSaveVo;
import com.wjm.blog.system.vo.response.SysUserDetailVo;
import com.wjm.blog.system.vo.response.SysUserListVo;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Component;

import javax.validation.Valid;
import java.util.List;

/**
 * 用户信息表Fallback
 *
 * @author wjm
 * @version 1.0
 * @date 2023-10-18T14:34:39.366
 */
@Log4j2
@Component
public class SysUserFallback implements SysUserApi {

    @Override
    public Result<IPage<SysUserListVo>> page(SysUserQueryVo queryVo) throws Exception {
        log.info("[SysUserApi]的page(SysUserQueryVo queryVo)发生异常，请求参数：{}", queryVo);
        return null;
    }

    @Override
    public Result<List<SysUserListVo>> list(SysUserQueryVo queryVo) throws Exception {
        log.info("[SysUserApi]的list(SysUserQueryVo queryVo)发生异常，请求参数：{}", queryVo);
        return null;
    }

    @Override
    public Result<SysUserDetailVo> get(Long id) throws Exception {
        log.info("[SysUserApi]的get(Long id)发生异常，请求参数：{}", id);
        return null;
    }

    @Override
    public Result insert(@Valid SysUserSaveVo saveVo) throws Exception {
        log.info("[SysUserApi]的insert(SysUserSaveVo saveVo)发生异常，请求参数：{}", saveVo);
        return null;
    }

    @Override
    public Result update(Long id, @Valid SysUserSaveVo saveVo) throws Exception {
        log.info("[SysUserApi]的update(Long id, SysUserSaveVo saveVo)发生异常，请求参数：{},{}", id, saveVo);
        return null;
    }

    @Override
    public Result invalid(List<Long> ids) throws Exception {
        log.info("[SysUserApi]的invalid(List<Long> ids)发生异常，请求参数：{}", ids);
        return null;
    }
}
